// import React, { Component, Fragment } from "react";
// Fragment相当于vue的template，空的占位标签
import React, { Component } from "react";

import Header from "./Header";
import Footer from "./Footer";

// 创建一个组件并且暴露
class App extends Component {
  render() {
    // 外面的根元素可以写成<></>,等同于Fragment
    return (
      <>
        <h2>组件的嵌套</h2>
        <Header />
        <Footer />
      </>
    );
  }
}

export default App;
